package com.zhuangjie.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 位置信息
 *
 * @author zhuangjie
 * @date 2024/01/09
 */
public class LocationInfo {
    @ApiModelProperty("经度")
    @TableField("longitude")
    @NotNull(message = "经度不能为空")
    private Double longitude;

    @ApiModelProperty("纬度")
    @TableField("latitude")
    @NotNull(message = "纬度不能为空")
    private Double latitude;

    @ApiModelProperty("省份编码")
    @TableField("province_code")
    @NotBlank(message = "省份编码不能为空")
    private String provinceCode;

    @ApiModelProperty("省份名称")
    @TableField("province_name")
    @NotBlank(message = "省份名称不能为空")
    private String provinceName;

    @ApiModelProperty("城市编码")
    @TableField("city_code")
    @NotBlank(message = "城市编码不能为空")
    private String cityCode;

    @ApiModelProperty("城市名称")
    @TableField("city_name")
    @NotBlank(message = "城市名称不能为空")
    private String cityName;

    @ApiModelProperty("区县编码")
    @TableField("district_code")
    @NotBlank(message = "区县编码不能为空")
    private String districtCode;

    @ApiModelProperty("区县名称")
    @TableField("district_name")
    @NotBlank(message = "区县名称不能为空")
    private String districtName;

    @ApiModelProperty("详细地址信息")
    @TableField("detail_address")
    private String detailAddress;
}
